﻿namespace OrleansURLShortener
{
    /// <summary>
    /// grain键标识符接口(Url縮短)
    /// </summary>
    public interface IUrlShortenerGrain : IGrainWithStringKey
    {
        /// <summary>
        /// 永久保存原始URL和相應短URL
        /// </summary>
        /// <param name="fullUrl">原始URL</param>
        Task SetUrl(string fullUrl);

        /// <summary>
        /// 獲取原始URL
        /// </summary>
        /// <returns>短URL</returns>
        Task<string> GetUrl();
    }
}
